package com.heipi.myjavademo.布隆过滤器;

import orestes.bloomfilter.BloomFilter;
import orestes.bloomfilter.FilterBuilder;

/**
 * @author: honry.guan
 * @create: 2025-08-01 15:51
 **/
public class BaqendTest {
    public static void main(String[] args) {
        BloomFilter<String> bloomFilter = new FilterBuilder(1000, 0.01).buildBloomFilter();
        bloomFilter.add("hello");
        bloomFilter.add("world");
        bloomFilter.add("guava");

        System.out.println(bloomFilter.contains("hello"));
        System.out.println(bloomFilter.contains("world"));
        System.out.println(bloomFilter.contains("gg"));
    }
}
